package com.gk.http.entity;

import com.gk.bean.CommonDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;

/**
 * http请求参数封装
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class HttpRequestParams<T> implements Serializable {
    private String timestamp = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));//当前时间，样例：2019-12-17 07:31:23
    private String sender = HttpCommon.sender;//来源系统（需要双方约定）
    private String receiver = "SAVE";//SAVE
    private String trackNo = "19000070771";//业务唯一号
    private String key = "";
    private String userdefine1 = "";
    private String userdefine2 = "";
    private String userdefine3 = "";
    private List<CommonDto> data = new ArrayList<>();
}
